package com.tentact.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.tentact.mapper.PageUtil;
import com.tentact.vo.Employee;

public interface EmployeeService {
	int insert(Employee employee);

	int update(Employee employee);

	int delete(Employee employee);

	int insertSelective(Employee employee);

	int updateSelective(Employee employee);

	Employee selectByPrimaryKey(Integer empid);
	// 查询总记录数
	int selectCountPage(Employee employee);

	// 按条件分页
	List<Employee> selectByPage(Employee employee,PageUtil page);
	
	List<Employee> selectByDeptno(Integer deptno);
	
	Employee selectByNameAndPwd(String username,String pwd);
	
	List<Employee> selectByStatus(Integer employeeStatus);
}
